import { createSSRApp } from "vue";
// import { createAbout } from "./app.js";

// 创建应用实例
const app = createSSRApp({
  data() {
    return {
      msg: "张三",
    };
  },
  template: `
    <span>
      <h1>About - {{ msg }}</h1>

      <input v-model="msg" />
    </span>
  `,
  created() {
    // console.log(window);
    console.log("About created");
  },

  mounted() {
    console.log("About mounted");
  },
});

setTimeout(() => {
  // 挂载
  app.mount("#app");
}, 5000);
